#include <stdio.h>
#define COUNT 9
#include <unistd.h>
int main()
{
    int count = COUNT;
    while(count)
    {
        printf("%-2d\r",count);
        count--;
        fflush(stdout);
        sleep(1);
    }
    printf("\n");
    return 0;
}
